package com.fowo.api.inventory.service;

import java.io.Serializable;

/**
 * 提供仓库操作异常的相关 itemId 信息
 * @author yl_ls
 */
public class InventoryException extends Exception implements Serializable {
    private final Long itemId;

    public InventoryException(Long itemId, String message) {
        super(message);
        this.itemId = itemId;
    }

    /**
     * 获取与仓库操作异常相关的商品编号
     */
    public Long getItemId() {
        return itemId;
    }
}
